import {
  post,
  get,
  formdataPost
} from '@/assets/api/http';


// 发布快乐驿站标题
export const addTopicSubmit = (data, config) => post('/api/happyhost/addTopicSubmit', data, config);

// 获取快乐驿站列表
export const getTopicList = (data, config) => post('/api/happyhost/getTopicList', data, config);

// 点赞/取消点赞话题
export const setTopicLike = (data, config) => post('/api/happyhost/setTopicLike', data, config);

// 点赞/取消点赞话题
export const addYizhanCommentSubmit = (data, config) => post('/api/happyhost/addYizhanCommentSubmit', data, config);

// 获取快乐驿站详情
export const getTopicDetail = (data, config) => post('/api/happyhost/getTopicDetail_new', data, config);

// 点赞评论
export const new_setLikecomment = (data, config) => post('/api/happyhost/new_setLikecomment', data, config);

// 关注用户
export const setFollow = (data, config) => post('/api/happyhost/setFollow', data, config);

// 获取我的关注和粉丝
export const getMyFollowFans = (data, config) => post('/api/happyhost/getMyFollowFans', data, config);

// 获取我的话题
export const getMyTopic = (data, config) => post('/api/happyhost/getMyTopic', data, config);

// 获取我的点赞列表
export const getMyGiveLikes = (data, config) => post('/api/happyhost/getMyGiveLikes', data, config);

// 获取我的评论列表
export const getMyComments = (data, config) => post('/api/happyhost/getMyComments', data, config);

// 获取我的消息
export const getmessage = (data, config) => post('/api/happyhost/getmessage', data, config);


// 回复
export const addYizhanCommentToCommentSubmit = (data, config) => post('/api/happyhost/addYizhanCommentToCommentSubmit', data, config);